package com.example.park2212.payer

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.PayerBeanItem
import com.example.park2212.R

class PayerAdapter:BaseQuickAdapter<PayerBeanItem,BaseViewHolder>(R.layout.item_payer) {
    override fun convert(helper: BaseViewHolder, item: PayerBeanItem) {
        helper.setText(R.id.payer_name,"项目名称：${item.projectName}")
        helper.setText(R.id.payer_price,"￥ ${item.totalAmount}")
        helper.setText(R.id.payer_userName,"户主姓名：${item.payerName}")
        helper.setText(R.id.payer_phone,"联系电话：${item.contactNumber}")
    }
}